package com.lancoo.znbkxx.teacher.widget;

import android.annotation.SuppressLint;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.TextView;

/**
 *    <com.lancoo.znbkxx.teacher.widget.MarqueeTextView
 *             android:id="@+id/STvPaperName"
 *             android:layout_width="wrap_content"
 *             android:layout_height="40dp"
 *             android:gravity="center"
 *             android:ellipsize="marquee"
 *             android:singleLine="true"
 *             android:marqueeRepeatLimit="marquee_forever"
 *             android:layout_toRightOf="@+id/SBtnBack"
 *             android:layout_toLeftOf="@+id/LlToolsView"
 *             android:text="试卷名称"
 *             android:textColor="#ffffff"
 *             android:textSize="18dp"/>
 */
@SuppressLint("AppCompatCustomView")
public class MarqueeTextView extends TextView {

    public MarqueeTextView(Context context) {
        super(context);
    }

    public MarqueeTextView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public MarqueeTextView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    public boolean isFocused(){
        return true;
    }

}
